#ifndef __SCRIPT_INCLUDE_H__
#define __SCRIPT_INCLUDE_H__

#include "script.h"
#include "script_block.h"

typedef struct script_include{
	char		*name;
	script_t	*script;	// include脚本
	int			refer;		// 使用计数
}script_include_t;

typedef struct include_data{
	script_include_t *inc;	
	script_exec_block_t *block;
	char *var_name;
}include_data_t;

script_include_t *script_include_create(char *name);

int script_include_destroy(script_include_t *include);

void script_include_uninit(void);

include_data_t *script_include_data_generate(script_include_t *inc,script_exec_block_t *env);

include_data_t *script_include_get(script_t *script, char *include_name);

#endif

